<?php
define('MODULE_NAME','payment');
$actions = array('alipay','chinabank','tencentpay','chinabankcheck');

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		exit;
}
	
define('ACTION_NAME',$action);

require_once './core/service/fanwe.service.php';
$fanwe = &FanweService::instance();
$fanwe->cache_list = array();
$fanwe->is_group_city = false;
$fanwe->is_cron = false;
$fanwe->initialize();

require import('module/payment');

switch(ACTION_NAME)
{
	case 'alipay':
	case 'chinabank':
	case 'tencentpay':
		PaymentModule::tencentpay();
	break;
	
	case 'chinabankcheck':
		PaymentModule::chinabankcheck();
	break;
}
?>